package com.cskaoyan.market.service.wx;

import com.cskaoyan.market.vo.CartIndexVo;
import com.cskaoyan.market.vo.WxCartCheckoutVo;

import java.util.List;
import java.util.Map;

public interface WxCartService {
    boolean update(Integer productId, Integer goodsId, Short number, Integer id);

    CartIndexVo delete(List<Integer> productId, Integer userId);

    CartIndexVo check(List<Integer> productIds, Boolean checked, Integer userId);

    WxCartCheckoutVo checkout(Integer cartId, Integer addressId, Integer couponId, Integer userCouponId, Integer grouponRulesId, Integer userId);

    Map<String, Integer> fastadd(Integer goodsId, short number, Integer productId, Integer userId);

    Integer getTotalCartGoods(Integer userId);

    Integer addCart(Integer goodsId, Short number, Integer productId,Integer userId);

    CartIndexVo index(Integer userId);


}
